import {defineStore} from 'pinia'
import {ref} from 'vue'

export const useStudentListStore = defineStore('studentList',()=>{
    const studentList = ref([])

    const setStudentList = (data)=>{
        studentList.value = data
    }

    const removeStudentList = ()=>{
        studentList.value = []
    }

    return{
        studentList,setStudentList,removeStudentList
    }
},{
    persist:true
});
